The simple moving average (SMA) is a method of calculating the average price of an asset, typically using closing prices, over a specified period of days.
The simple moving average (SMA) is a method of calculating the average price of an asset, typically using closing prices, over a specified period of days.
The Simple Moving Average (SMA) is an arithmetic moving average calculated by adding the most recent prices and dividing by the number of time intervals required for the calculation. For example, you can add the closing prices of a security over several time periods and then divide the sum by the same number of periods. Short-term averages respond quickly to changes in the underlying security's price, while long-term averages respond more slowly. In addition to this, there are other types of moving averages, including the exponential moving average (EMA) and the weighted moving average (WMA).
The formula of SMA is:
<!-- @@@ -->For example, if a security's closing price over a 15-day period is as follows:
Week 1 (5 days): 20, 22, 24, 25, 23
Second week (5 days): 26, 28, 26, 29, 27
Week 3 (5 days): 28, 30, 27, 29, 28
392 / 15 = 26.13
Therefore, the 15-day simple moving average for this security is
<!-- @@@ -->11+
<!-- @@@ -->11+
<!-- @@@ -->11.6.
A simple moving average gives equal weight to each value within the time period, while an exponential moving average gives more weight to recent prices. Since exponential moving averages are often viewed as a more timely indicator of price trends, many traders prefer using EMA over simple moving averages. Common short-term exponential moving averages include 12-day and 26-day exponential moving averages, while 50-day and 200-day exponential moving averages are used to indicate longer-term trends.
[1] The Wall Street Journal. "Does Chart Analysis Really Work?"
TheQuantHackers is a cutting-edge community composed of a group of people from the world's top universities and quantitative finance practitioners, dedicated to exploring the infinite possibilities in the fields of artificial intelligence (AI) and quantification (Quant). Our team members come from world-renowned universities such as the University of Cambridge, Oxford University, Harvard University, ETH Zurich, Peking University, and the University of Science and Technology of China. Our external consultants come from first-class companies such as Microsoft, HSBC, Citadel, Man Group, Citi, Jump Trading, and top domestic private equity companies.
例如,如果某证券在15天内的收盘价如下:
第一周(5天):20, 22, 24, 25, 23
第二周(5天):26, 28, 26, 29, 27
第三周(5天):28, 30, 27, 29, 28
392 / 15 = 26.13
因此,该证券的15天简单移动平均线为$26.13。
10天移动平均线则仅对最近10天的收盘价进行平均,而不是使用所有15天的数据。每当股市收盘时,会有一个新的最新收盘价,此价格将替代过去使用的最旧价格,重新计算出一个最新的移动平均线。50天移动平均线将使用50天的数据进行滚动计算。
简单移动平均线具有可定制性,可以根据不同的时间周期进行计算。通过将证券在若干个时间周期内的收盘价相加,然后除以周期数,可以得到该证券在该时间段内的平均价格。
简单移动平均线可以平滑价格波动,更容易地观察到证券的价格趋势。如果简单移动平均线向上,则表示证券价格在上涨;如果向下,则表示价格在下跌。移动平均线的时间框架越长,简单移动平均线越平滑。短期移动平均线波动性较大,但其读取数据更接近源数据。
重要提示: 最常用的简单移动平均线之一是200天SMA。然而,跟随大众存在风险。正如《华尔街日报》所指出的,数以千计的交易者基于200天SMA制定策略,因此这些预测可能成为自我实现,并限制价格变动。[1]
移动平均线是识别当前价格趋势和潜在趋势变化的重要分析工具。在技术分析中,SMA的最简单用途是快速确定资产是处于上涨趋势还是下跌趋势。
另一个稍微复杂的分析用途是比较一对简单移动平均线每条平均线覆盖不同的时间框架。如果短期简单移动平均线高于长期平均线,则预期将出现上涨趋势;反之则预期出现下跌趋势。
使用简单移动平均线的两种流行交易模式包括死亡交叉和黄金交叉。死亡交叉发生在50天SMA下穿200天SMA时,被视为熊市信号,表示后续可能出现进一步损失。黄金交叉则是短期SMA突破长期SMA,被高交易量所强化时,可能暗示将迎来收益。
简单移动平均线和指数移动平均线的主要区别在于各自对计算中数据变化的敏感性。具体来说,EMA对最近价格赋予更高的权重,而SMA则对所有值赋予相等的权重。
这两种平均线在解释上基本相同,均被技术交易者广泛使用以平滑价格波动。由于EMA对近期数据赋予更高权重,因此对最新价格变化反应更为灵敏,使得EMA的结果显得更加及时,这也是许多交易者偏好使用EMA的原因。
尚不清楚在时间段内应更多关注最近几天的数据还是较远的数据。许多交易者认为,新数据更能反映证券当前的趋势,而另一些交易者则认为,优先考虑某些日期可能会偏见趋势。因此,SMA可能过于依赖过时的数据,因为它将第10天或第200天的影响与第1天或第2天的影响视为相同。
同样,SMA完全依赖历史数据。许多人(包括一些经济学家)认为市场是有效的,这被称为有效市场假说。该假说认为,当前市场价格已经反映了所有可用信息。如果市场确实是有效的,使用历史数据对资产价格未来方向的预测则无意义。支持这一假说的经济学和金融思想家有很多,同时也有不少反对者。
交易者使用简单移动平均线(SMA)来描绘股票或其他证券的长期轨迹,同时忽略日常价格波动的噪音。这使得交易者能够在更长的时间范围内比较中长期趋势。例如,如果某证券的50天SMA跌破其200天SMA,通常解释为看跌的死亡交叉模式,暗示可能进一步下跌。相反,黄金交叉模式则表明市场可能出现反弹。
计算简单移动平均线时,在某个时间段内的价格总和除以价格个数。例如,考虑特斯拉的股票在五天内分别收盘于$ 简单移动平均线(SMA)是计算资产平均价格的一种方法,通常使用收盘价,并在指定天数的时间段内进行计算。
简单移动平均线(SMA)是一种算术移动平均,计算方法是将最近的价格相加,然后除以计算所需的时间区间数。例如,可以将某个证券在若干个时间周期内的收盘价相加,然后将其总和除以相同的周期数。短期平均对基础证券价格的变化反应迅速,而长期平均则反应较慢。除此之外,还有其他类型的移动平均线,包括指数移动平均线(EMA)和加权移动平均线(WMA)。
SMA的公式为:
12、
例如,如果某证券在15天内的收盘价如下:
第一周(5天):20, 22, 24, 25, 23
第二周(5天):26, 28, 26, 29, 27
第三周(5天):28, 30, 27, 29, 28
392 / 15 = 26.13
因此,该证券的15天简单移动平均线为11 + 10、11.6。
简单移动平均线对时间段内的每个值赋予等重,而指数移动平均线则对最近价格赋予更大权重。由于指数移动平均线通常被视为更及时的价格趋势指标,因此许多交易者更倾向于使用EMA而非简单移动平均线。常见的短期指数移动平均线包括12天和26天,而50天和200天的指数移动平均线则用于指示长期趋势。
[1] The Wall Street Journal. "Does Chart Analysis Really Work?"
TheQuantHackers是由一群来自世界顶尖高校和量化金融从业人员组成的前沿社区,致力于探索人工智能(AI)与量化(Quant)领域的无限可能。我们的团队成员来自剑桥大学、牛津大学、哈佛大学、苏黎世联邦理工学院、北京大学、中科大等世界知名高校,外部顾问来自Microsoft、HSBC、Citadel、Man Group、Citi、Jump Trading、国内顶尖私募等一流企业。
Upgrade to unlock all institutional-grade algorithms, derivative pricing engines, factor backtesting frameworks, and live QuantLab execution.
Explore Membership Access
Pre-order · £490Quantitative analytics platform
Waitlist closed — signal locked. Pre-order TQH TERMINAL now at £490 with launch-day delivery.